layui.use(['common','layer','table','form',],function(){
	var $ = layui.$,
    	layer = layui.layer,
    	form = layui.form,
    	common = layui.common,
    	table = layui.table;
	
	var id = GetQueryString("id");
	$.post("/systemsetup/permissionsmanage/role/selectAdminRoleById",{id:id},function(result){
		$("#name").val(result.data["name"]);
		$("#title").val(result.data["title"]);
		$("#description").val(result.data["description"]);
		$("#orders").val(result.data["orders"]);
		$("#roleId").val(result.data["roleId"]);
	});
	
	
	 //监听提交
    form.on('submit(roleDtail)', function(data){
    		parent.layer.closeAll();
	   
	   return false;
    });
	
	
});